package com.atguigu.gulimall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 开启服务的注册与发现（在配置文件中配置nacos注册中心地址）
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})//排除跟数据库相关的配置
public class GulimallGatewayApplication {

    public static void main(String[] args) {
        //处理网关服务中的API管理菜单没有
        System.setProperty("csp.sentinel.app.type", "1");
        SpringApplication.run(GulimallGatewayApplication.class, args);
    }

}
